//
//  UILabel+ContentSize.h
//  u9_iOS
//
//  Created by zhangzhenyun on 2017/8/23.
//  Copyright © 2017年 user1. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSString+ContentSize.h"
@interface UILabel(ContentSize)
/**
 * 根据当前的字体和文本动态获取size,最大宽和高为当前Label的宽和高
 * @return 动态获取的size
 */
- (CGSize)contentSize;
- (CGSize)contentSizeWithOptions:(NSStringDrawingOptions)options;
/**
 * 根据当前的字体和文本动态获取size
 * @param maxSize 最大的宽和高
 * @return 动态获取的size
 */
- (CGSize)contentSizeWithMaxSize:(CGSize)maxSize;
- (CGSize)contentSizeWithMaxSize:(CGSize)maxSize options:(NSStringDrawingOptions)options;



+ (CGSize)contentSizeWithText:(NSString *)text Font:(UIFont *)font;

+ (CGSize)contentSizeWithText:(NSString *)text Font:(UIFont *)font options:(NSStringDrawingOptions)options;
@end


